
module(..., package.seeall)

local LuaInflator = {}

function LuaInflator.new(self, params, versium)
   local obj = {}
   setmetatable(obj, self)
   self.__index = self
   obj.versium = versium
   return obj
end
   
function LuaInflator.inflate(self, node_string, env)
   return self.versium:load_lua(node_string, env or {})
end

function make_inflator(params, versium) 
   return LuaInflator:new(params, versium)
end
